<template>
  <router-view :class="theme" />
</template>
<script setup lang="ts">
  import {ref} from "vue";
  import useConfigStore from "@/store/globalSettingStore"
  import useUserStore from "@/store/userStore";
  let useUser = useUserStore()
  let useConfig=useConfigStore()
  let theme=ref("light-theme")
  init()
  function init(){
    // 初始化用户信息
    useUser.getUser()

    // 初始化方案分类
    useConfig.getClassificationOptions()

  }
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: 0;
  padding: 0;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
